﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="felhasznalokezeles.aspx.cs" Inherits="NEMProjectWebApp.Pages.Admin.felhasznalokezeles" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <style type="text/css">
        .style2
        {
            width: 157px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <table style="width: 100%;">
        <tr>
            <td class="style2">
                <asp:Label ID="Label2" runat="server" Text="Felhasználók:"></asp:Label>
            </td>
            <td width="100px">
                Jogkör:
            </td>
            <td class="style4">
                <asp:DropDownList ID="JogKorDropDownList" runat="server" DataSourceID="SqlDataSource1"
                    DataTextField="Leiras" DataValueField="Jogkor_ID">
                </asp:DropDownList>
                <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:masterConnectionString %>"
                    SelectCommand="SELECT * FROM [FelhasznJogkor] ORDER BY [Leiras]"></asp:SqlDataSource>
            </td>
        </tr>
        <tr>
            <td class="style2" rowspan="8">
                <asp:ListBox ID="FelhasznalokListBox" runat="server" Height="280px" Style="text-align: left"
                    Width="200px" DataSourceID="SqlDataSource" DataTextField="Nev" DataValueField="User_ID"
                    AutoPostBack="True" OnSelectedIndexChanged="FelhasznalokListBox_SelectedIndexChanged">
                </asp:ListBox>
                <asp:SqlDataSource ID="SqlDataSource" runat="server" ConnectionString="<%$ ConnectionStrings:masterConnectionString %>"
                    SelectCommand="SELECT User_ID, CAST(User_ID as varchar(4))+' - '+VezNev+' '+ KerNev as Nev FROM Felhasznalo">
                </asp:SqlDataSource>
            </td>
            <td width="100px">
                <asp:Label ID="Label3" runat="server" Text="Azonosító:"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="AzonositoTextBox" runat="server" Width="250px" ReadOnly="True"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td width="100px">
                <asp:Label ID="Label4" runat="server" Text="Vezetéknév:"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="VnevTextBox" runat="server" Width="250px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td width="100px">
                <asp:Label ID="Label5" runat="server" Text="Keresztnév:"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="KnevTextBox" runat="server" Width="250px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td width="100px">
                <asp:Label ID="Label6" runat="server" Text="Nem:"></asp:Label>
            </td>
            <td>
                <asp:DropDownList ID="NemDropDownList" runat="server" Width="100px">
                    <asp:ListItem Value="Férfi">Férfi</asp:ListItem>
                    <asp:ListItem Value="Nő">Nő</asp:ListItem>
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td width="100px">
                <asp:Label ID="Label7" runat="server" Text="Anyja neve:"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="AnyjaNevTextBox" runat="server" Width="250px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td width="100px">
                <asp:Label ID="Label8" runat="server" Text="Születési ideje:"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="EvTextBox" runat="server" MaxLength="4" Width="60px"></asp:TextBox>
                <asp:Label ID="Label11" runat="server" Text="év"></asp:Label>
                <asp:TextBox ID="HonapTextBox" runat="server" MaxLength="2" Width="30px"></asp:TextBox>
                <asp:Label ID="Label12" runat="server" Text="hónap"></asp:Label>
                <asp:TextBox ID="NapTextBox" runat="server" MaxLength="2" Width="30px"></asp:TextBox>
                <asp:Label ID="Label13" runat="server" Text="nap"></asp:Label>
            </td>
        </tr>
        <tr>
            <td width="100px">
                <asp:Label ID="Label9" runat="server" Text="Sz. Ig. Szám:"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="SzIgSzamTextBox" runat="server" Width="250px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td width="100px">
                <asp:Label ID="Label10" runat="server" Text="Jelszó:"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="JelszoTextBox" runat="server" Width="250px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="style2">
                <asp:Button ID="FelhaszAdatMentBtn" runat="server" Text="Felhasználó adatainak mentése"
                    Width="200px" OnClick="FelhaszAdatMentBtn_Click" />
            </td>
            <td width="100px">
                <asp:Button ID="MegseBtn" runat="server" Text="Mégse" Width="100px" OnClick="MegseBtn_Click" />
            </td>
            <td>
                <asp:Button ID="JogkormodositBtn" runat="server" OnClick="JogkormodositBtn_Click"
                    Text="Felhasználó jogkörének módosítása" Width="250px" />
            </td>
        </tr>
    </table>
    <asp:Label ID="EredmenyLabel" runat="server" Font-Size="Large" ForeColor="Red"></asp:Label>
</asp:Content>
